package cn.smkt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户档案对象 user
 * 
 * @author kiven
 * @date 2025-04-10
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户档案ID */
    private Long id;

    /** 账号id */
    @Excel(name = "账号id")
    private Long userId;

    /** 性别（0：女  1：男） */
    @Excel(name = "性别", readConverterExp = "0=：女,1=：男")
    private Long sex;

    /** 出生年月日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 婚姻状态 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "婚姻状态", width = 30, dateFormat = "yyyy-MM-dd")
    private Date marStatus;

    /** 常用地址 */
    @Excel(name = "常用地址")
    private String commonAdress;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String area;

    /** 注册渠道 */
    @Excel(name = "注册渠道")
    private String negChannels;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }

    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }

    public void setMarStatus(Date marStatus) 
    {
        this.marStatus = marStatus;
    }

    public Date getMarStatus() 
    {
        return marStatus;
    }

    public void setCommonAdress(String commonAdress) 
    {
        this.commonAdress = commonAdress;
    }

    public String getCommonAdress() 
    {
        return commonAdress;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }

    public void setNegChannels(String negChannels) 
    {
        this.negChannels = negChannels;
    }

    public String getNegChannels() 
    {
        return negChannels;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("sex", getSex())
            .append("birthDate", getBirthDate())
            .append("marStatus", getMarStatus())
            .append("commonAdress", getCommonAdress())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("negChannels", getNegChannels())
            .toString();
    }
}
